ifeq ($(OS),Windows_NT)
    CURR_DIR_PATH = $(CURDIR)/../../
else
    CURR_DIR_PATH = $(shell pwd)/../../
endif

GCC:=gcc
INC+=-I${CURR_DIR_PATH}/utils/include
INC+=-I${CURR_DIR_PATH}/test/serialize
INC+=-I${CURR_DIR_PATH}/test/unity

SRC+=${CURR_DIR_PATH}/utils/src/serialize/serialize.c
SRC+=${CURR_DIR_PATH}/test/serialize/serialize_test.c

SRC+=${CURR_DIR_PATH}/test/unity/unity.c

AIM_NAME:=serialize_test

.PHONY:all
all:
	${GCC} ${INC} ${SRC} -o ${CURR_DIR_PATH}/test/serialize/${AIM_NAME} -std=c99

.PHONY:clean
clean:
	rm -rf ${CURR_DIR_PATH}/test/serialize/${AIM_NAME}